import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store.js'
import VueRouter from 'vue-resource'
Vue.use(VueRouter)

import moment from "moment"
Vue.filter('dateFormat',function(dataStr,pattern){
  pattern=pattern||"YYYY-MM-DD HH:mm:ss"
return moment(dataStr).format(pattern)
})
// import { Header, Swipe, SwipeItem,Lazyload } from 'mint-ui';
// Vue.component(Header.name, Header);
// Vue.component(Swipe.name, Swipe);
// Vue.component(SwipeItem.name, SwipeItem);
import "./lib/mui/css/mui.min.css"
import "./lib/mui/css/icons-extra.css"
// Vue.use(Lazyload);
import Mintui from "mint-ui"
Vue.use(Mintui)
import 'mint-ui/lib/style.css'

import VuePreview from 'vue-preview'
Vue.use(VuePreview)

Vue.http.options.emulateJSON = true;
Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
